<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>财务指标分析</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            padding: 20px;
        }
        .container {
            margin-top: 30px;
        }
        .card {
            margin-top: 20px;
        }
        h1 {
            text-align: center;
        }
        .chart-container {
            text-align: center;
            margin-top: 30px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>财务指标分析 - {{ statement.year }}年</h1>
        
        <!-- 财务报表详细数据 -->
        <div class="card">
            <div class="card-header">
                财务报表数据
            </div>
            <div class="card-body">
                <p><strong>总资产：</strong>{{ statement.total_assets }} 元</p>
                <p><strong>总负债：</strong>{{ statement.total_liabilities }} 元</p>
                <p><strong>股东权益：</strong>{{ statement.equity }} 元</p>
                <p><strong>收入：</strong>{{ statement.revenue }} 元</p>
                <p><strong>净利润：</strong>{{ statement.net_profit }} 元</p>
                <p><strong>经营现金流：</strong>{{ statement.operating_cash_flow }} 元</p>
            </div>
        </div>

        <!-- 财务健康指数 -->
        <div class="card">
            <div class="card-header">
                财务健康指数
            </div>
            <div class="card-body">
                <p><strong>盈利能力指数：</strong>{{ health_index.profitability_index }}%</p>
                <p><strong>偿债能力指数：</strong>{{ health_index.solvency_index }}%</p>
                <p><strong>效率指数：</strong>{{ health_index.efficiency_index }}%</p>
                <p><strong>整体健康指数：</strong>{{ health_index.overall_health_index }}%</p>
            </div>
        </div>

        <!-- 财务健康指标可视化图表 -->
        <div class="chart-container">
            <h3>财务健康指标可视化</h3>
            <img src="data:image/png;base64,{{ chart }}" alt="财务健康指标图表" />
        </div>
    </div>
</body>
</html>

